﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Tong;
public partial class aspnet_testPargrameDir_site_List : System.Web.UI.Page
{   /// <summary>
    /// 用於顯示資料
    /// </summary>
    public Tong.TongUse TextData = new Tong.TongUse();

    /// <summary>
    /// 系统安装绝对路径
    /// </summary>
    public string Abs_Path = TongUse.SysPath;
    /// <summary>
    /// 用户存放数据的临时表
    /// </summary>
    DataTable MyDt = new DataTable();

    public string ho = "";

    /// <summary>
    /// 站点通用方法类
    /// </summary>
    public Tong.ThisSiteUse.SiteTong TextThisSite = new Tong.ThisSiteUse.SiteTong();


    //得到传入的栏目ID
    public String CloumnID = "1";

    /// <summary>
    /// 顯示當前欄目的簡介
    /// </summary>
    public string str1 = "";
    /// <summary>
    /// 資料表
    /// </summary>
    DataTable NewDt = new DataTable();
    /// <summary>
    /// 用于分頁的對像
    /// </summary>
    Tong.Fy.FenYe FY = new Tong.Fy.FenYe();

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            BindData();
        }
        catch { }


        //機構新聞
        MyDt = TextThisSite.GetPointCloumnNews("7", 999999, "0");//调用
        ShowMac.DataSource = MyDt;
        ShowMac.DataBind();
    }

    /// <summary>
    ///邦定當前頁面的資料
    /// </summary>
    void BindData()
    {
        try
        {

            CloumnID = Request.QueryString["SendentID"].Trim();
        }
        catch
        {
            CloumnID = Request.QueryString["CloumnID"].Trim();
        }

       // MyDt = TextData.SqlataSet("select * from [CX_Column]  where CX_Column_id=" + CloumnID).Tables[0];
       //// Descripation.Text = MyDt.Rows[0][Tong.DataOperation.Data_CX_Column._CX_Column_Explair].ToString();
       // ho = MyDt.Rows[0][Tong.DataOperation.Data_CX_Column._CX_Column_Name].ToString();
       // MainCase.DataSource = FY.Fy("select * from [CX_NEWS] where " + Tong.DataOperation.Data_CX_NEWS._CX_NEWS_Pic + " = 1 and " + Tong.DataOperation.Data_CX_NEWS._CX_NEWS_Class_id + "= " + TextThisSite.SiteGetNewsClassIDGiveCloumnID(CloumnID) + "   order by CX_NEWS_Sort desc,[CX_NEWS_PublicTime] desc, CX_NEWS_id desc  ", 12);
       //     MainCase.DataBind();
       //     Div.InnerHtml = FY.GetHTML;

       

    }



}
